package _02methodFactory;

import _01simple.Car;

/**
 * @author ServivE
 * @version 0.1
 * @className TestMethod
 * @description
 * @date 2024/10/15 10:01
 * @since jdk17
 */
public class TestMethod {
    public static void main(String[] args) {
        //需要宝马车 直接去找宝马车厂生成
        BMWFactory bmwFactory = new BMWFactory();
        Car car = bmwFactory.buildCar();
        car.showBrand();
    }
}
